package com.cqhilink.iot.jobstandardmanagement.dao.mapper;

import com.cqhilink.iot.jobstandardmanagement.facade.model.BootstrapSearchBean;
import com.cqhilink.iot.jobstandardmanagement.facade.model.RelatedDoc;
import com.cqhilink.iot.jobstandardmanagement.facade.model.WorkCellInstance;

import java.util.List;
import java.util.Map;

/**
 * 相关文档上传-映射
 */
public interface RelatedDocMapper {
    /**
     * 文档关系映射-删除
     *
     * @param cellRelatedDocId
     * @return
     */
    int deleteByPrimaryKey(String cellRelatedDocId);

    /**
     * 文档关系映射-插入
     *
     * @param record
     * @return
     */
    int insert(RelatedDoc record);

    /**
     * 批量插入
     *
     * @param list
     * @return
     */
    int insertList(List<RelatedDoc> list);

    /**
     * 文档关系映射-插入
     *
     * @param record
     * @return
     */
    int insertSelective(RelatedDoc record);

    /**
     * 文档关系映射-查询
     *
     * @param cellRelatedDocId
     * @return
     */
    RelatedDoc selectByPrimaryKey(String cellRelatedDocId);

    /**
     * 文档关系映射-修改
     *
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(RelatedDoc record);

    /**
     * 文档关系映射-修改
     *
     * @param record
     * @return
     */
    int updateByPrimaryKey(RelatedDoc record);

    /**
     * 查询分页数据
     */
    List<RelatedDoc> queryTableList(RelatedDoc relatedDoc);

    /**
     * @param instance
     * @return
     */
    List<RelatedDoc> selectRelaedDocList(WorkCellInstance instance) ;

    /**
     * 逻辑删除文档配置信息
     */
    int updateDocByIds(Map<String, Object> map);
}